#include "stdio.h"
#include "stdlib.h"
#include "string.h"


char  **getMem(int count)
{
	int i = 0;
	char **tmp = NULL;
	tmp = (char **)malloc(count*sizeof(char *));
	for (i=0; i<count; i++)
	{
		tmp[i]  = (char *)malloc(100);
	}
	return tmp;
}

void  printfArray(char **myArray, int count)
{
	int i = 0, j = 0;

	for (i=0; i<count; i++)
	{
		printf("%s \n", myArray[i]);
	}
}

void main()
{
	char **pArray = NULL;
	int count = 3;

	pArray = getMem(count);

	strcpy(pArray[0], "bbbbb");
	strcpy(pArray[1], "aaaa");
	strcpy(pArray[2], "cccc");

	printfArray(pArray ,count);



}